package org.fas.utils
{
	public class FuPwd
	{
		public function FuPwd()
		{
			throw new Error("FuPwd class is static class,Please don't test to construct it!");  
		}
		static public function cscGoogle(_passString:String):uint
		{
			if(!_passString)return 0;
			var count:uint = 0;
			count += _passString.length<=4?5:(_passString.length>=8?25:10);
			count += !_passString.match(/[a-z]/i)?0:(_passString.match(/[a-z]/) && _passString.match(/[A-Z]/)?20:10);
			count += !_passString.match(/[0-9]/)?0:(_passString.match(/[0-9]/g).length >= 3?20:10);
			count += !_passString.match(/\W/)?0:(_passString.match(/\W/g).length > 1?25:10);
			count += !_passString.match(/[0-9]/)||!_passString.match(/[a-z]/i)?0:(!_passString.match(/\W/)?2:(!_passString.match(/[a-z]/) || !_passString.match(/[A-Z]/)?3:5));
			return count;
		}
	}
}